package com.company.beauty.ids.util;

import cn.hutool.extra.spring.SpringUtil;
import org.apache.commons.lang3.math.NumberUtils;

/**
 * <p></p >
 *
 * @author youyoukele
 * @version 1.0
 * @date 2024/4/22 15:49
 */
public class PortUtils {

    private static final String SERVER_PORT = SpringUtil.getProperty("server.port");

    /**
     * 获取端口
     *
     * @return
     */
    public static Integer getPort() {
        return NumberUtils.toInt(SERVER_PORT, 80);
    }

}
